View Javadoc
1 /*** 2 * NoneRegistry 3 * 4 * This stores the collectors for the Ball 96 Algorithm. 5 */ 6 7 package junit.quilt.cover.none; 8 9 import java.net.*; 10 11 import junit.quilt.framework.*; 12 13 public class NoneRegistry extends QuiltRegistry 14 { 15 private static String levels[] = {"Instrument", "Class", "Method"}; 16 17 public NoneRegistry() { 18 super( "No Instrumentation" ); 19 setLevels( levels ); 20 } 21 22 protected ClassLoader newInstClassLoader( String packages[], 23 URL path[], 24 ClassLoader parent ) { 25 returnNoneClassLoader( packages, path, parent, this )/index.html">> new NoneClassLoader( packages, path, parent, this ); 26 } 27 /*** 28 * Store a NoneCollector. 29 * 30 * @param classname Class name 31 * @param methodname Method name 32 * @param b96 a B96Collector value. 33 */ 34 public void bind( String className, String methodName, 35 NoneCollector none ) 36 { 37 String args[] = new String[2]; 38 args[0] = className; 39 args[1] = methodName; 40 registerCollector( args, none ); 41 } 42 43 /*** 44 * Lookup a NoneCollector given the class and method. 45 * 46 * @param className Class Name. 47 * @param methodName Method Name. 48 * @return a NoneCollector associated with the method. 49 */ 50 public NoneCollector lookup( String className, String methodName) 51 { 52 String args[] = new String[2]; 53 args[0] = className; 54 args[1] = methodName; 55 return (NoneCollector)get(args); 56 } 57 58 /*** 59 * Singleton access method. 60 */ 61 // public static NoneRegistry getInstance() { 62 // return fInstance; 63 // } 64 }

This page was automatically generated by Maven